<!DOCTYPE html>
<html lang="es">
    <head>
        <meta charset="utf-8">
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="author" content="bruguitasss@hotmail.com">
        <meta name="author" content="unrealmach@gmail.com">
        <meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />

        <?php
        $baseUrl = Yii::app()->theme->baseUrl;
        $cs = Yii::app()->getClientScript();
        Yii::app()->clientScript->registerCoreScript('jquery');
        ?>
        <!-- Fav and Touch and touch icons -->
        <link rel="shortcut icon" href="<?php echo $baseUrl; ?>/img/icons/favicon16.png">
        <?php
        $cs->registerCssFile($baseUrl . '/css/bootstrap.min.css');
        $cs->registerCssFile($baseUrl . '/css/bootstrap-responsive.min.css');
        $cs->registerCssFile($baseUrl . '/css/abound.css');
        $cs->registerCssFile($baseUrl . '/css/sidecontent.css');
//        DataTable jQuery
//        $cs->registerCssFile($baseUrl . '/css/DataTables-1.10.3/jquery.dataTables.css');
        
        $cs->registerCssFile($baseUrl . '/css/style-blue.css');
        $cs->registerCssFile($baseUrl . '/css/common.css');
        ?>
        <!-- styles for style switcher -->
        <!--<link rel="stylesheet" type="text/css" href="<?php // echo $baseUrl; ?>/css/style-blue.css" />-->
        <!--<link rel="stylesheet" type="text/css" href="<?php // echo $baseUrl; ?>/css/common.css" />-->
        <!--<script type="text/javascript" src="http://code.jquery.com/ui/1.8.13/jquery-ui.min.js"></script>-->
        <?php
        $cs->registerScriptFile($baseUrl . '/js/bootstrap.min.js');
        $cs->registerScriptFile($baseUrl . '/js/common.js');
        $cs->registerScriptFile($baseUrl . '/js/plugins/jquery.numeric.js');
        $cs->registerScriptFile($baseUrl . '/js/plugins/jquery.sidecontent.js');
        ?>
        <script>
            var baseUrl = "<?php echo Yii::app()->baseUrl . '/index.php/'; ?>";
            var baseUrlClean = "<?php echo Yii::app()->baseUrl ?>";
            var themeUrl = "<?php echo $baseUrl ?>";
        </script>
    </head>
    <body>
        <?php
        // Initialize the extension
        $this->widget('application.extensions.jnotify.JNotify', array(
            'statusBarId' => 'StatusBar',
            'notificationId' => 'Notification',
//            'notificationHSpace' => '20px',
            'notificationWidth' => '600px',
//            'notificationVSpace'=>'-500px',
//            $notificationShowAt =false; // , ,
            'notificationShowAt' => 'topRight',
        ));
        ?>

        <section id="navigation-main">   
            <!-- Require the navigation -->
            <?php require_once('tpl_navigation.php') ?>
        </section>
        <div >
            
        </div>

        <!-- /#navigation-main -->
        <section class="main-body">
            <div class="container-fluid">
                <!-- Include content pages -->

                <?php echo $content; ?>

            </div>
        </div>
    </section>



    <div class="row-fluid">
        <!-- modal principal -->
        <?php $this->beginWidget('bootstrap.widgets.TbModal', array('id' => 'mainModal')); ?>
        <div class="modal-header">
            <!--<a class="close" data-dismiss="modal">&times;</a>-->
            <center>  <div id="titleModal"></div></center>
        </div>
        <div class="modal-body" id="mainModalBody" >
            <center>  <div id="dataModalBody"></div></center>
            <center> <div id="reportsModalBody"></div></center>
        </div>
        <div class="modal-footer">
        </div>
        <?php $this->endWidget(); ?>
        <!-- fin modal principal -->

        <?php
        $this->widget('application.extensions.etooltipster.EToolTipster', array(
            'target' => '.dashIcon',
            'options' => array(
                'theme' => 'tooltipster-light',
                'animation' => 'grow',
            )
        ));
        ?>
    </div>
    <!--fin modal principal--> 
    <!-- footer -->
    <?php require_once('tpl_footer.php') ?>
</body>
</html>